import { myRequest } from "./index";

export function getBannerList(type = 2) {
  return myRequest.get({
    url: '/banner',
    data: {
      type
    }
  })
}
export function getSongRecommend(id = 3778678) {
  return myRequest.get({
    url: '/playlist/detail',
    data: {
      id
    }
  })
}
export function getSongMenu(cat = '全部', limit = 6, offset = 0) {
  return myRequest.get({
    url: '/top/playlist',
    data: {
      cat,
      limit,
      offset
    }
  })
}
export function getAllMenu() {
  return myRequest.get({
    url: '/playlist/hot'
  })
}